<@realgodo.admin_html>
	<script type="text/javascript" src="${base}/scripts/admin/show/index.js"></script>
	<div class="title">
					<h1>展示管理</h1>
					<span class="tTip"></span>
				</div>
				<div class="box">
					<form name="searchForm" id="searchForm" method="post" action="${base}/admin/show/">
						<div class="tx_table" style="margin-bottom:7px;">
							<div class="data">
								<h2>展示管理</h2>
								<table>
									<tbody>
										<tr style="background:#dcf7fe;">
											<td>
												展示标题：
												<input class="Q" type="text" name="showForm.title" value="${(showForm.title)!}" size="26" />
												隐私级别
												<select name="showForm.privacy">
													<option value= "-1">--请选择--</option>
													<option value= "0" <#if showForm??><#if showForm.privacy??><#if showForm.privacy==0>selected="true"</#if></#if></#if>>公开</option>
													<option value="1" <#if showForm??><#if showForm.privacy??><#if showForm.privacy==1>selected="true"</#if></#if></#if>>会员可见</option>
													<option value="2" <#if showForm??><#if showForm.privacy??><#if showForm.privacy==2>selected="true"</#if></#if></#if>>朋友可见</option>
													<option value="3" <#if showForm??><#if showForm.privacy??><#if showForm.privacy==3>selected="true"</#if></#if></#if>>隐藏</option>
												</select>
											</td>
										</tr>
									</tbody>
								</table>
								<div class="tx_sender">
									<input class="step" name="" type="submit" value="查 找" />
								</div>
							</div>
						</div>
					</form>
					<form id="topForm" name="topForm" method="post" action="${base}/admin/show/index!top">
						<input type="hidden" value="" name="id" id="top_hidden_id"/>
					</form>
					<form id="untopForm" name="untopForm" method="post" action="${base}/admin/show/index!untop">
						<input type="hidden" value="" name="id" id="untop_hidden_id"/>
					</form>
					<form id="vieditopForm" name="vieditopForm" method="post" action="${base}/admin/show/index!viedotop">
						<input type="hidden" value="" name="id" id="vieditop_hidden_id"/>
					</form>
					<form id="unvieditopForm" name="unvieditopForm" method="post" action="${base}/admin/show/index!top">
						<input type="hidden" value="" name="id" id="unvieditop_hidden_id"/>
					</form>
						<div class="tx_table" id="columns_list">
							<form name="removeForm" id="removeForm" method="post" action="${base}/admin/recruit/index!remove">
								<div class="data">
									<div class="tx_sender l_tr" style="padding:5px 10px;">					
									</div>
									<table class="l_tc">
										<caption>展示列表</caption>
										<thead>
											<tr>
												<th><input class="C" type="checkbox" value="" onclick="checkAll(this);"/></th>
												<th>展示标题</th>
												<th>当前状态</th>
												<th>展示类型</th>
												<th>隐私状态</th>
												<th>创建时间</th>
												<th>操作</th>
											</tr>
										</thead>
										<tbody>
										<#list showPage.result as show>
											<tr <#if show_index%2 != 0> class="c_odd" </#if>>
												<td><input class="C items" type="checkbox" value="${show.id}" name="ids"/></td>
												<td>
													<a class="c_modi" href="${base}/space/show!detail?domain=${(show.space.user.loginName)!}&id=${show.id}" target="_blank">${(show.title)!}</a>
												</td>
												<td>
													<#if show.viedo==1>视频</#if>
													<#if show.viedo==0>图文展示</#if>
												</td>
												<td>
													<#if show.top==1>置顶</#if>
													<#if show.viedoTop==1>首页视频推荐</#if>
												</td>
												<td>
													<#if show.privacy==0>公开</#if>
													<#if show.privacy==1>会员可见</#if>
													<#if show.privacy==2>好友可见</#if>
													<#if show.privacy==3>隐藏</#if>
												</td>
												<td>${show.pubTime?string("yyyy-MM-dd")!}</td>
												<td>
													
													<#if show.top!=1&&show.privacy==0><a class="c_modi" style="cursor:pointer;" onClick="top(${(show.id?c)!})">置顶</a></#if>
													<#if show.top==1><a class="c_modi" style="cursor:pointer;" onClick="untop(${(show.id?c)!})">取消置顶</a></#if>
													<#if show.viedoTop!=1&&show.privacy==0&&show.viedo==1><a class="c_modi" style="cursor:pointer;" onClick="viedotop(${(show.id?c)!})">首页视频推荐</a></#if>
													<#if show.viedoTop==1><a class="c_modi" style="cursor:pointer;" onClick="unviedotop(${(show.id?c)!})">取消首页视频推荐</a></#if>
												</td>
											</tr>
										</#list>							
										</tbody>
									</table>
									
								</div>
							</form>
							<@realgodo.pagination_admin div="columns_list" />
						</div>
				</div>
</@realgodo.admin_html>